package com.cuixichang.minimalism.controller;

import com.cuixichang.minimalism.basal.base.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试功能接口
 *
 * @author cuixichang
 * @date 2024-11-22
 */
@Api(tags = "测试功能接口")
@RestController
@RequestMapping("i-demo")
@RequiredArgsConstructor
public class IDemoController {
    @GetMapping("/test")
    @ApiOperation(value = "测试权限使用接口")
    public Result<String> test(){
        return Result.ok("测试成功", "sayName.name()");
    }
}
